package jschool.homework.connection.pool;

import java.sql.SQLException;

public class Connections {
	public static ConnectionPool semaphoreConnectionPool(String connectionUrl, int maxConnections) throws SQLException {
		return new SemaphoreConnectionPool(connectionUrl, maxConnections);
	}
	
	public static ConnectionPool blockingQueueConnectionPool(String connectionUrl, int maxConnections) throws SQLException {
		return new BlockingQueueConnectionPool(connectionUrl, maxConnections);
	}
}
